package com.chenzhou.qx.checklibrary;

import android.content.Context;

/**
 * 开启检测
 * @author tk
 * @date 2021/2/6
 */
public class CheckMonster {

    public static void check(Context context, boolean... debug) {

        boolean b = true;
        if (debug != null && debug.length > 0) {
            b = debug[0];
        }

        if (b) {
            HookActivityManager.hookIActivityManager();
            HookPackageManager.hookIPackageManager();
            HookWifiManager.hookMacAddress(context);
        }

    }

}
